/**
 * Created with IntelliJ IDEA
 * Description
 * User：chenshu
 * Date：2023-11-08
 * Time：09:23
 */
public class Demo1 {
    public static void main(String[] args) throws InterruptedException {
        Object object = new Object();
        synchronized (object) {
            System.out.println("wait之前");
            object.wait();
            System.out.println("Wait之后");
        }
    }
}
